package com.jlf.sample.auto.generate.conf;

import com.jlf.sample.auto.generate.persistence.Sample1Persistence;
import com.jlf.sample.auto.generate.persistence.impl.Sample1PersistenceImpl;
import com.jlf.sample.auto.generate.server.Sample1Server;
import com.jlf.sample.auto.generate.server.impl.Sample1ServerImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 文件注释
 *
 * @author wujr
 * 2023/7/6
 * @version 1.0
 * 【变更历史】
 * [wujr 2023/7/6 1.0 新增]
 */
@Configuration
public class AutoGenerateConfiguration {
    @Bean
    public Sample1Persistence sample1Persistence(){
        return new Sample1PersistenceImpl();
    }

    @Bean
    public Sample1Server sample1Server(Sample1Persistence persistence){
        return new Sample1ServerImpl(persistence);
    }
}
